package com.zeei.gis.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultDataVO;
import com.zeei.gis.service.AreaCodeGisService;
import com.zeei.gis.vo.AreaCodeGisVO;

/**
 * @类型名称：AreaCodeGisController
 * @类型描述：GIS一张图地区查询
 * @功能描述：GIS一张图地区查询
 * @创建人：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/areaCode")
public class AreaCodeGisController extends BasicController{

	@Autowired
	AreaCodeGisService areaCodeGisService;
	
	@RequestMapping(value="/list", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "查询省市区县信息", type = LogType.View)
	public ResultDataVO<AreaCodeGisVO> queryAreaCodeList() {
		AreaCodeGisVO areaCodeGisVO = areaCodeGisService.queryAreaCodeGisList();
		return this.createResultDataVO(areaCodeGisVO, true, null);
	}
}
